<?php echo $this->load->view('meta'); ?>
<script language="javascript" type="text/javascript" src="<?=base_url()?>js/jquery.datePicker.js"></script>
<script language="javascript" type="text/javascript" src="<?=base_url()?>js/date.js"></script>
<link rel="stylesheet" href="<?=base_url()?>css/jquery.datepicker.css" type="text/css" media="screen" />
<script language="javascript" type="text/javascript" src="<?=base_url()?>js/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
<!--
    tinyMCE.init({
        mode : "textareas",
        theme : "advanced",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_buttons1: "bold,italic,underline,strikethrough,sub,sup,|,hr,charmap,|,bullist,numlist,|,link,unlink,|,undo,redo,|,cut,copy,paste,|,code",
		theme_advanced_buttons2: "",
		theme_advanced_buttons3: "",
        convert_urls : false,
        relative_urls : false,
        entity_encoding : ""
    });
	
	Date.format = 'mm/dd/yyyy';
	$(document).ready(function() {
		$("#expires").datePicker({
			clickInput		: true,
			createButton	: false
		}).dpSetPosition($.dpConst.POS_BOTTOM, $.dpConst.POS_LEFT);
	});
// -->
</script>
<title>xa-ncsu | news</title>
<?php echo $this->load->view('header'); ?>
<div id="content">
<?=$this->validation->error_string;?>
<?=form_open('news/publish');?>
<fieldset>
	<legend><span>create an announcement</span></legend>
	<ol class="fivehundred">
		<li><label for="title">title</label>
			<input type="input" name="title" /></li>
		<li><label for="body">body</label>
			<textarea name="body" rows="30"></textarea>
		</li>
		<li><label for="expires">expires</label>
			<input type="input" id="expires" name="expires" /></li>
		<li><?=form_submit('','publish');?> <?=anchor('news', 'Cancel');?></li>
	</ol>
</fieldset>
<?=form_close()?>
</div>
<?php echo $this->load->view('footer'); ?>